package cn.edu.hqu.experiment1.Repository;

import cn.edu.hqu.experiment1.Entities.Movie;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MovieRepository extends JpaRepository<Movie, Long> {

    List<Movie> findByTitleContaining(String title);

    List<Movie> findByDirectorContaining(String director);

    List<Movie> findByTitleContainingAndDirectorContaining(String title, String director);
}
